function SoundManager(){
	var fn = this;
	
	fn.init = function(){
		//background music
		fn.backgroundSound = $("<audio/>");
		fn.backgroundSound.attr('src', 'asserts/audio/BGM.mp3');
		fn.backgroundSound.attr('autoplay', 'autoplay');
		fn.backgroundSound.attr('reload', 'auto');
		
		//effect music
		fn.effectSound = $("<audio/>");
		fn.effectSound.attr('autoplay', 'autoplay');
		
		$(".ui-footer").append(fn.backgroundSound);
		$(".ui-footer").append(fn.effectSound);
		
		fn.playBackgroundSound();
	},
	
	fn.playBackgroundSound = function(){
		fn.backgroundSound[0].play();
	},
	
	fn.pauseBackgroundSound = function(){
		fn.backgroundSound[0].pause();
	},
	
	fn.setBackgroundSound = function(src){
		fn.backgroundSound.attr('src', src);
	},
	
	fn.hoverEffect = function(){
		fn.effectSound.attr('src', 'asserts/audio/click.mp3');
		fn.effectSound[0].play();
	},
	
	fn.clickEffect = function(){
		fn.effectSound.attr('src', 'asserts/audio/click.mp3');
		fn.effectSound[0].play();
	}
};